package com.lion.ball.app.models.params.order;


/**
 * @author Chris Chan
 * Create on 2025-09-30 22:44
 * Use for: 商品分类 排序参数
 * Explain:
 * 
 */
public class TradeGoodsCategoryOrderParam {
    // ID
    private int id;
    // 分类编码
    private int code;
    // 父级分类编码 为0则为顶级分类
    private int parentCode;
    // 分类层级
    private int level;
    // 分类名称
    private int name;
    // 分类图标
    private int icon;
    // 分类图片
    private int img;

    // 无参构造方法
    public TradeGoodsCategoryOrderParam() {
    }

    // 全参数构造方法
    public TradeGoodsCategoryOrderParam(int id, int code, int parentCode, int level, int name, int icon, int img) {
        this.id = id;
        this.code = code;
        this.parentCode = parentCode;
        this.level = level;
        this.name = name;
        this.icon = icon;
        this.img = img;
    }

    // 全参数create生成器
    public static TradeGoodsCategoryOrderParam create(int id, int code, int parentCode, int level, int name, int icon, int img) {
        return new TradeGoodsCategoryOrderParam(id, code, parentCode, level, name, icon, img);
    }

    // 全参数of生成器
    public static TradeGoodsCategoryOrderParam of(int id, int code, int parentCode, int level, int name, int icon, int img) {
        return new TradeGoodsCategoryOrderParam(id, code, parentCode, level, name, icon, img);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public TradeGoodsCategoryOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getCode() {
        return code;
    }

    public TradeGoodsCategoryOrderParam setCode(int code) {
        this.code = code;
        return this;
    }

    public int getParentCode() {
        return parentCode;
    }

    public TradeGoodsCategoryOrderParam setParentCode(int parentCode) {
        this.parentCode = parentCode;
        return this;
    }

    public int getLevel() {
        return level;
    }

    public TradeGoodsCategoryOrderParam setLevel(int level) {
        this.level = level;
        return this;
    }

    public int getName() {
        return name;
    }

    public TradeGoodsCategoryOrderParam setName(int name) {
        this.name = name;
        return this;
    }

    public int getIcon() {
        return icon;
    }

    public TradeGoodsCategoryOrderParam setIcon(int icon) {
        this.icon = icon;
        return this;
    }

    public int getImg() {
        return img;
    }

    public TradeGoodsCategoryOrderParam setImg(int img) {
        this.img = img;
        return this;
    }

    // endregion Getter和Setter方法
}
